﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using NPSoft.Ferrero.DataBridge.DAL;

namespace NPSoft.Ferrero.DataBridge.BLL
{
    public class GetResultData
    {
        private GetResultDataUtil dal = new GetResultDataUtil();

        #region "获取错误数据"

        /// <summary>
        /// 获取Daily Sales Error Data
        /// </summary>
        /// <returns></returns>
        public DataTable GetInErrorData(BusinessIdentifier which)
        {
            return dal.GetInErrorData((int)which);
        }

        /// <summary>
        /// 获取Daily Sales Error Data
        /// </summary>
        /// <returns></returns>
        public DataTable GetInErrorMsgData(BusinessIdentifier which)
        {
            return dal.GetInErrorMsgData((int)which);
        }

        #endregion

        #region "获取正确数据"

        /// <summary>
        /// 获取Daily Sales Increment Data
        /// </summary>
        /// <returns></returns>
        public DataTable GetInSuccessData(BusinessIdentifier which)
        {
            return dal.GetInSuccessData((int)which);
        }

        #endregion

        #region "获取总数据"

        /// <summary>
        /// 获取Daily Sales Increment Data
        /// </summary>
        /// <returns></returns>
        public DataTable GetInTotalData(BusinessIdentifier which)
        {
            return dal.GetInTotalData((int)which);
        }

        #endregion
    }

    /// <summary>
    /// 业务标识符
    /// </summary>
    public enum BusinessIdentifier
    {
        NONE = 0,
        Distributor = 1,
        Employee = 2,
        Product = 3,
        UOM = 4,
        ProductCostPrice = 5,
        //Inventory = 6,
        Unmapped_Stores = 7,
        Mapped_Stores = 8,
        EX_F = 9,
        EX_F_TARGET = 10,
        EmployeeCN30 = 11
    }
}
